package com.billing.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserEmergencycontactBeanMapper;
import com.billing.model.entity.TUserEmergencycontact;
import com.billing.model.entity.TUserEmergencycontactBuffer;
import com.billing.service.UserEmergencycontactService;
@Service
public class UserEmergencycontactServiceImpl implements UserEmergencycontactService {
	@Resource
	private UserEmergencycontactBeanMapper userEmergencycontactBeanMapper; 
	public int insertTUserEmergencycontact(TUserEmergencycontact userEmergencycontact) {
		return userEmergencycontactBeanMapper.insertTUserEmergencycontact(userEmergencycontact);
	}
	public TUserEmergencycontact selectUserEmergencycontactByUid(String userid) {
		return userEmergencycontactBeanMapper.selectUserEmergencycontactByUid(userid);
	}
	public int updateUserEmergencycontact(TUserEmergencycontact userEmergencycontact) {
		return userEmergencycontactBeanMapper.updateUserEmergencycontact(userEmergencycontact);
	}
	@Override
	public TUserEmergencycontact selectUserEmergencycontactByid(String id) {
		return userEmergencycontactBeanMapper.selectUserEmergencycontactByid(id);
	}
	@Override
	public int insertByBuffer(TUserEmergencycontactBuffer emergencycontactBuffer) {
		return userEmergencycontactBeanMapper.insertByBuffer(emergencycontactBuffer);
	}
	@Override
	public int updateByBuffer(TUserEmergencycontactBuffer emergencycontactBuffer) {
		return userEmergencycontactBeanMapper.updateByBuffer(emergencycontactBuffer);
	}

}
